<?php

declare (strict_types=1);
namespace App\Model;

/**
 * @property int $id 
 * @property string $cpu_usage_rate CPU使用率
 * @property string $memory_usage 内存使用量,单位G
 * @property string $memory_total 内存总量,单位G
 * @property string $disk_usage 磁盘使用量,单位G
 * @property string $disk_total 磁盘总量,单位G
 * @property int $active_conn 活跃连接数
 * @property int $mysql_conn MySQL连接数
 * @property int $mysql_conn_total MySQL连接池上限
 * @property string $redis_memory_usage redis内存使用量
 * @property string $redis_memory_total redis内存分配量
 * @property int $mysql_qps MySQL每秒查询次数
 * @property int $active_users 活跃用户数
 * @property int $app_rps 应用每秒请求数
 * @property string $error_rate 错误率
 * @property \Carbon\Carbon $created_at 
 */
class SystemInformation extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'system_information';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'cpu_usage_rate', 'memory_usage', 'memory_total', 'disk_usage', 'disk_total', 'active_conn', 'mysql_conn', 'mysql_conn_total', 'redis_memory_usage', 'redis_memory_total', 'mysql_qps', 'active_users', 'app_rps', 'error_rate', 'created_at', 'updated_at'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'active_conn' => 'integer', 'mysql_conn' => 'integer', 'mysql_conn_total' => 'integer', 'mysql_qps' => 'integer', 'active_users' => 'integer', 'app_rps' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];

    const UPDATED_AT = null;
}